<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateSiteLocationAgainAssembleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('site_location_again_assemble', function (Blueprint $table) {
            $table->id();
            $table->string('developerName', 120)->default('')->comment('开发人员名称');
            $table->unsignedInteger('developerId')->default(0)->comment('开发人员ID');
            $table->unsignedInteger('shopCode')->default(0)->comment('门店编号');
            $table->string('orderNo', 56)->default('')->comment('订单编号');
            $table->unsignedInteger('signTime')->default(0)->comment('签约时间');
            $table->unsignedInteger('contractTime')->default(0)->comment('上传合同时间');
            $table->unsignedInteger('confirmTime')->default(0)->comment('确址时间');
            $table->unsignedInteger('againTime')->default(0)->comment('重新选址时间');
            $table->string('province', 32)->default('')->comment('省');
            $table->string('city', 56)->default('')->comment('市');
            $table->string('district', 56)->default('')->comment('区');
            $table->string('address', 255)->default('')->comment('详细地址');
            $table->string('desc', 255)->default('')->comment('重新选址描述');
            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('createdByUid')->default(0)->comment('创建人');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->unsignedInteger('updatedByUid')->default(0)->comment('修改人');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment   = '重新选址统计';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('site_location_again_assemble');
    }
}
